import service from '@/utils/request'

// @Tags UserCalendar
// @Summary 创建用户日程
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.UserCalendar true "创建用户日程"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /userCalendar/createUserCalendar [post]
export const createUserCalendar = (data) => {
  return service({
    url: '/userCalendar/createUserCalendar',
    method: 'post',
    data
  })
}

// @Tags UserCalendar
// @Summary 删除用户日程
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.UserCalendar true "删除用户日程"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /userCalendar/deleteUserCalendar [delete]
export const deleteUserCalendar = (params) => {
  return service({
    url: '/userCalendar/deleteUserCalendar',
    method: 'delete',
    params
  })
}

// @Tags UserCalendar
// @Summary 批量删除用户日程
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除用户日程"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /userCalendar/deleteUserCalendar [delete]
export const deleteUserCalendarByIds = (params) => {
  return service({
    url: '/userCalendar/deleteUserCalendarByIds',
    method: 'delete',
    params
  })
}

// @Tags UserCalendar
// @Summary 更新用户日程
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.UserCalendar true "更新用户日程"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /userCalendar/updateUserCalendar [put]
export const updateUserCalendar = (data) => {
  return service({
    url: '/userCalendar/updateUserCalendar',
    method: 'put',
    data
  })
}

// @Tags UserCalendar
// @Summary 用id查询用户日程
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.UserCalendar true "用id查询用户日程"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /userCalendar/findUserCalendar [get]
export const findUserCalendar = (params) => {
  return service({
    url: '/userCalendar/findUserCalendar',
    method: 'get',
    params
  })
}

// @Tags UserCalendar
// @Summary 分页获取用户日程列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取用户日程列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /userCalendar/getUserCalendarList [get]
export const getUserCalendarList = (params) => {
  return service({
    url: '/userCalendar/getUserCalendarList',
    method: 'get',
    params
  })
}
